package cn.broadsense.thrid.param;

import cn.hutool.core.collection.CollUtil;
import lombok.Data;

import java.util.List;

/**
 * 批量删除
 *
 * @author pengxin
 * @date 2022-10-10 15:32
 */
@Data
public class EvBatchDelTaskParam extends BaseParam {
    private static final long serialVersionUID = -1778023386374999555L;

    /**
     * 任务id列表
     */
    private List<String> planTasks;

    @Override
    public void checkParam() {
     if(CollUtil.isEmpty(planTasks)){
         throw new SecurityException("任务id不能为空");
     }
    }

    @Override
    public Class getResultClass() {
        return String.class;
    }
}
